package com.scm.biz.service._impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.scm.biz.bean.Area;
import com.scm.biz.dao.AreaDao;
import com.scm.biz.service.AreaService;

@Service
public class AreaServiceImpl implements AreaService {
	
	@Resource
	private AreaDao areaDao;

	public AreaServiceImpl() {
		
	}
	
	@Override
	public List<Area> getAllProvince(){
		return areaDao.selectAllProvince();
	}

	@Override
	public List<Area> getAreaByParentId(Integer parentId) {
		return areaDao.selectAreaByParentId(parentId);
	}


}
